//
//  YMBaseTableViewController.h
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/10/13.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^clickBtn)(void);
@class YMNavigationBar;

@interface YMBaseTableViewController : UITableViewController
@property (nonatomic, strong) YMNavigationBar * navigationBar;

@property(nonatomic,strong)UIImageView *dotImageView;
/**
 *  导航栏右按钮
 *
 *  @param image 按钮图片
 *  @param click 点击回调
 */
- (void)rightNavButtonWithImage:(UIImage *)image action:(void(^)(void))click;

/**
 *  导航栏右按钮
 *
 *  @param title   按钮文字
 *  @param click 点击回调
 */
- (void)rightNavButtonWithTitle:(NSString *)title action:(void(^)(void))click;

/**
 导航栏右按钮
 
 @param title 按钮文字
 @param color 按钮文字颜色
 @param click 点击回调
 */
- (void)rightNavButtonWithTitle:(NSString *)title color:(UIColor *)color action:(void(^)(void))click;

//标注版首页导航栏添加右导航按钮(切换城市)
- (void)travelRightNavButtonWithTitle:(NSString *)title color:(UIColor *)color imageName:(NSString *)imageName action:(void(^)(void))click;

/**
 *  导航栏返回按钮
 *
 *  @param click 点击回调
 */
- (void)backButtonAction:(void (^)(void))click;

/**
 *  导航栏左按钮
 *
 *  @param image 按钮图片
 *  @param click 点击回调
 */
- (void)leftNavButtonWithImage:(UIImage *)image action:(void (^)(void))click;

- (void)leftNavButtonWithTitle:(NSString *)title action:(void (^)(void))click;

//标准版左导航按钮
- (void)travelLeftNavButtonAction:(void(^)(void))click;
@end
